{extend name="public/base"}

{block name="title"}就行天下-约酒交友{/block}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/home/css/personal.css" />
<style>
    .msui_menu-li2 {
        float: left;
        box-sizing: border-box;
        padding: .3rem 0;
        width: 50%;
        text-align: center;
        cursor: pointer;
    }
    .weui-cell.ffb:before{
        border-top: 1px solid #FFFBFF;
    }
    .msui_menu-item {
        line-height: 1rem;
        padding: .5rem 0;
        display: block;
        text-align: center;
    }
    .weui-baseline2 {
        border-bottom: 2px solid #C40202;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50%;
    }
</style>
{/block}

{block name="main"}
<div class="pageControl bg-f5">
    <div class="main-top"></div>
    <div class="msui_nav msui_navTop">
        <a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">成员管理</h1>
        <a href="javascript:;" class="msui_navTop-right msui_navTop-cnav"><i class="micon-cnav"></i></a>
    </div>
    <div class="msui_menu ">
        <div class="msui_menu-mask tab-fixed">
            <ul class="msui_menu-bd js-slider">
                <li class="msui_menu-li" data-tab="0"><a class="msui_menu-list fs08 cl-6666" data-status="1" href="#hash2_" data-hash="#hash2_">待审核</a></li>
                <li class="msui_menu-li" data-tab="1"><a class="msui_menu-list fs08 cl-6666" data-status="2" href="#hash1_" data-hash="#hash1_">已审核</a></li>
                <li class="msui_menu-li" data-tab="2"><a class="msui_menu-list fs08 cl-6666" data-status="3" href="#hash3_" data-hash="#hash3_">已拒绝 </a></li>
                <!-- 用于动画的层 -->
                <div id="line" class="weui-baseline"></div>
            </ul>
        </div>
    </div>
    <div class="mtab_list1 mtop03">
        <div class="js-list1 active">

        </div>
    </div>
</div>
{/block}

{block name="javascript"}
<script>
    SCOPE.obj = {
        action : 'activity_member',
        is_more : true,
        page : 1,
        url : '{:url("activity_member")}',
        hash : '2',
        container : '.js-list1',
        data : {
            id : '{$id}',
            status : 1
        }
    };

    $(function () {
        $(document).on('click', '.audit', function () {
            var _this = $(this);
            $.confirm('确认审核?', function () {
                $.showLoading();
                $.post("{:url('edit_member_status')}", {id : _this.data('id'), status : _this.data('status')}, function (msg) {
                    $.hideLoading();
                    console.log(msg);
                    if (msg.code == 200) {
                        $.toptip('审核成功！', 'success');
                        window.location.reload();
                    } else {
                        $.toptip(msg.msg);
                    }
                }, 'json');
            });
        });
    })
</script>
{/block}